package sharetime.playlist.service;

import org.springframework.stereotype.Service;

import sharetime.core.service.BaseManager;
import sharetime.playlist.domain.PlaylistComment;

@Service("playlistCommentManager")
public class DefaultPlaylistCommentManager extends BaseManager implements
		IPlaylistCommentManager {

	@Override
	public void createPlaylistComment(PlaylistComment pc) {
		dao.create(pc);
	}

	@Override
	public PlaylistComment getPlaylistComment(long id) {
		return dao.getInstanceById(PlaylistComment.class, id);
	}

	@Override
	public void removePlaylistComment(long id) {
		dao.remove(getPlaylistComment(id));
	}

}
